﻿package plugin.wing
{
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.wing.ui.*;
    import view.*;

    public class Wing extends FlashUIBase
    {

        public function Wing()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/horse.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function openRefresh() : void
        {
            super.openRefresh();
            this.uiControl.openRefresh(this.data);
            this.mData = null;
            return;
        }// end function

        override protected function initGUI() : void
        {
            mGUI = new WingUIControl();
            return;
        }// end function

        private function get uiControl() : WingUIControl
        {
            return mGUI as WingUIControl;
        }// end function

    }
}
